package com.xbongbong.paas.service.impl;

import com.xbongbong.pro.domain.dao.FieldConvertRuleDao;
import com.xbongbong.pro.domain.entity.FieldConvertRuleEntity;
import com.xbongbong.paas.service.FieldConvertRuleModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author bomfish
 */
@Service("fieldConvertRuleModel")
public class FieldConvertRuleModelImpl implements FieldConvertRuleModel {
    @Resource
    private FieldConvertRuleDao fieldConvertRuleDao;

    @Override
    public Long insert(FieldConvertRuleEntity entity) {
        return fieldConvertRuleDao.insert(entity);
    }

    @Override
    public void insertBatch(List<FieldConvertRuleEntity> list) {
        fieldConvertRuleDao.insertBatch(list);
    }

    @Override
    public List<FieldConvertRuleEntity> findEntitys(Map<String, Object> param) {
        return fieldConvertRuleDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return fieldConvertRuleDao.getEntitysCount(param);
    }

    @Override
    public void update(FieldConvertRuleEntity entity) {
        fieldConvertRuleDao.update(entity);
    }

    @Override
    public FieldConvertRuleEntity getByKey(Long key, String corpid) {
        return fieldConvertRuleDao.getByKey(key, corpid);
    }

    @Override
    public Integer updateBatch(List<FieldConvertRuleEntity> list, String corpid) {
        return fieldConvertRuleDao.updateBatch(list, corpid);
    }
}
